<!DOCTYPE html>
<html lang="zh-cn">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>导航条--bootstrap应用</title>
  <link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
  <style>
    #carousel-example-generic {
      /*without the class.navbar-fixed-top, below line will word the close to the navbar*/
      /*margin-top: -20px;*/
    }

    .carousel {
      height: 550px;
    }

    .carousel .item {
      height: 550px;
    }

    .carousel .item img {
      width: 100%;
    }

    .carousel-caption h3 {
      font-size: 4.8em;
    }

    .carousel-caption p {
      line-height: 30px;
      font-size: 22px;
    }

    .feature {
      padding: 30px 0;
    }

    .feature .feature-head {
      font-size: 50px;
      color: #2a6494;
      margin-top: 120px;
    }

    .feature .text-muted {
      font-size: 28px;
    }

    .feature p {
      line-height: 35px;
    }
  </style>
</head>

<body>
  <nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#demo-navbar" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
        <a class="navbar-brand" href="#">浏览器博物馆</a>
      </div>
      <div class="collapse navbar-collapse" id="demo-navbar">
        <ul class="nav navbar-nav">
          <li><a href="#">首页</a></li>

          <li><a href="#">简述</a></li>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                            特点
                            <span class="caret"></span>
                        </a>
            <ul class="dropdown-menu">
              <li class="dropdown-header">主流</li>
              <li><a href="#chrome">chrome</a></li>
              <li><a href="#firefox">firefox</a></li>
              <li><a href="#opera">opera</a></li>
              <li><a href="#ie">ie</a></li>
              <li class="divider"></li>
              <li class="dropdown-header">苹果</li>
              <li><a href="#safari">safari</a></li>
            </ul>
          </li>
          <li><a href="#">帮助</a></li>
          <li><a href="#" data-toggle="modal" data-target="#about">关于</a></li>
        </ul>
        <form class="navbar-form navbar-left">
          <div class="form-group">
            <input type="text" class="form-control" placeholder="用户名...">
            <input type="password" class="form-control" placeholder="密码...">
          </div>
          <button type="submit" class="btn btn-default">登录</button>
        </form>
      </div>
    </div>
  </nav>


  <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
      <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
      <li data-target="#carousel-example-generic" data-slide-to="1"></li>
      <li data-target="#carousel-example-generic" data-slide-to="2"></li>
      <li data-target="#carousel-example-generic" data-slide-to="3"></li>
      <li data-target="#carousel-example-generic" data-slide-to="4"></li>
    </ol>

    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">
      <div class="item active">
        <img src="img/chrome-big.jpg" alt="Chrome">
        <div class="carousel-caption">
          <h3>Chrome</h3>
          <p>11 英寸 MacBook Air 充电一次可运行长达 9 小时，而 13 英寸机型则可运行长达 12 小时。</p>
        </div>
      </div>
      <div class="item">
        <img src="img/firefox-big.jpg" alt="FireFox">
        <div class="carousel-caption">
          <h3>FireFox</h3>
          <p>无论是什么任务，配备 Intel HD Graphics 5000 图形处理器的第四代 Intel Core 处理器都能应对自如。</p>
        </div>
      </div>
      <div class="item">
        <img src="img/ie-big.jpg" alt="IE">
        <div class="carousel-caption">
          <h3>IE</h3>
          <p> 有了新一代 802.11ac 技术，MacBook Air 令 Wi-Fi 速度超越极限。</p>
        </div>
      </div>
      <div class="item">
        <img src="img/opera-big.jpg" alt="Opera">
        <div class="carousel-caption">
          <h3>Opera</h3>
          <p>无论是什么任务，配备 Intel HD Graphics 5000 图形处理器的第四代 Intel Core 处理器都能应对自如。</p>
        </div>
      </div>
      <div class="item">
        <img src="img/safari-big.jpg" alt="Safari">
        <div class="carousel-caption">
          <h3>Safari</h3>
          <p> 有了新一代 802.11ac 技术，MacBook Air 令 Wi-Fi 速度超越极限。</p>
        </div>
      </div>
    </div>

    <!-- Controls -->
    <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
      <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
      <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
      <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
      <span class="sr-only">Next</span>
    </a>
  </div>

  <div class="container">
    <!-- Nav tabs -->
    <ul class="nav nav-tabs" role="tablist" id="tab-list">
      <li role="presentation" class="active"><a href="#chrome" aria-controls="chrome" role="tab" data-toggle="tab">Chrome</a></li>
      <li role="presentation"><a href="#firefox" aria-controls="firefox" role="tab" data-toggle="tab">FireFox</a></li>
      <li role="presentation"><a href="#opera" aria-controls="opera" role="tab" data-toggle="tab">Opera</a></li>
      <li role="presentation"><a href="#ie" aria-controls="ie" role="tab" data-toggle="tab">IE</a></li>
      <li role="presentation"><a href="#safari" aria-controls="safari" role="tab" data-toggle="tab">Safari</a></li>
    </ul>
    <!-- Tab panes -->
    <div class="tab-content">
      <div role="tabpanel" class="tab-pane active" id="chrome">
        <div class="row feature">
          <div class="col-md-7">
            <h2 class="feature-head">Google Chrome <samll class="text-muted">使用最广的浏览器</samll></h2>
            <p class="lead">Google Chrome，又称Google浏览器，是一个由Google（谷歌）公司开发的网页浏览器。 该浏览器是基于其他开源软件所撰写，包括WebKit，目标是提升稳定性、速度和安全性，并创造出简单且有效率的使用者界面。</p>
          </div>
          <div class="col-md-5">
            <img src="img/chrome-logo.jpg" alt="">
          </div>
        </div>
      </div>

      <div role="tabpanel" class="tab-pane" id="firefox">
        <div class="row feature">
          <div class="col-md-5">
            <h2 class="feature-head">FireFox <samll class="text-muted">美丽的火狐</samll></h2>
            <p class="lead">Mozilla Firefox，中文名通常称为“火狐”或“火狐浏览器”，是一个开源网页浏览器， 使用Gecko引擎（非ie内核），支持多种操作系统如Windows、Mac和linux。</p>
          </div>
          <div class="col-md-7">
            <img src="img/firefox-logo.jpg" alt="">
          </div>
        </div>
      </div>
      <div role="tabpanel" class="tab-pane" id="ie">
        <div class="row feature">
          <div class="col-md-7">
            <h2 class="feature-head">IE <samll class="text-muted">你懂的</samll></h2>
            <p class="lead">Internet Explorer，原称Microsoft Internet Explorer(6版本以前)和Windows Internet Explorer(7，8，9，10版本)， 简称IE，是美国微软公司推出的一款网页浏览器。它采用的排版引擎(俗称内核)为Trident。</p>
          </div>
          <div class="col-md-5">
            <img src="img/ie-logo.jpg" alt="">
          </div>
        </div>
      </div>
      <div role="tabpanel" class="tab-pane" id="opera">
        <div class="row feature">
          <div class="col-md-5">
            <h2 class="feature-head">Opera <samll class="text-muted">小众但易用</samll></h2>
            <p class="lead">Opera浏览器，是一款挪威Opera Software ASA公司制作的支持多页面标签式浏览的网络浏览器。 是跨平台浏览器可以在Windows、Mac和Linux三个操作系统平台上运行。</p>
          </div>
          <div class="col-md-7">
            <img src="img/opera-logo.jpg" alt="">
          </div>
        </div>
      </div>
      <div role="tabpanel" class="tab-pane" id="safari">
        <div class="row feature">
          <div class="col-md-5">
            <h2 class="feature-head">Safari <samll class="text-muted">Mac用户首选</samll></h2>
            <p class="lead">Safari，是苹果计算机的最新操作系统Mac OS X中的浏览器，使用了KDE的KHTML作为浏览器的运算核心。 Safari在2003年1月7日首度发行测试版，并成为Mac OS X v10.3与之后的默认浏览器，也是iPhone与IPAD和iPod touch的指定浏览器。</p>
          </div>
          <div class="col-md-7">
            <img src="img/safari-logo.jpg" alt="">
          </div>
        </div>
      </div>
    </div>
  </div>



  <!-- the modal of about -->
  <div class="modal fade" tabindex="-1" role="dialog" id="about">
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title">关于</h4>
        </div>
        <div class="modal-body">
          <p>One fine body&hellip;</p>
          <p>Copyright (c) 2017 Copyright Holder All Rights Reserved.</p>
          <strong class="pull-right">Design by AuZheng.</strong>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        </div>
      </div>
      <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
  </div>
  <!-- /.modal -->

  
  <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
  <script src="http://cdn.bootcss.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
  <script>
    $(document).ready(function() {
      $("#demo-navbar .dropdown-menu a").click(function(e) {
        var href = $(this).attr("href");
        $("#tab-list a[href = '" + href + "' ]").tab("show");
        // $('#myTab a[href="#profile"]').tab('show')，单引号和双引号可以调换
      });
    });
  </script>
</body>

</html>
